/* vue */
import { defineComponent } from "vue";
/* mixin */
import VersionControlBaseMixin from '@src/mixins/versionControlMixin/base';
/* version wiki */
import {
  isShowWikiModule
} from '@shb-lib/version'

export default defineComponent({
  name: "version-control-wiki-mixin",
  mixins: [VersionControlBaseMixin],
  computed: {
    /**
     * @description 知识库 模块 版本控制
    */
    wikiVersionControl(): Record<string, boolean> {
      return {
        isShowWikiModule: isShowWikiModule(this._versionControlMap),
      }
    },
    _isShowWikiModule(): boolean {
      return this.wikiVersionControl.isShowWikiModule
    }
  }
})
